//引入样式
require('../css/commonCss/normalize.css')
require('../css/commonCss/reset.css')
require('../css/commonCss/property.css')
require('../css/commonCss/basic.less')
require('../fonts/iconfont.css')

require('../css/myBadges.less')
//引入axios
const axios = require('axios')
//weui—插件库
require('weui')
const weui = require('weui.js')

// 文档加载事件
document.addEventListener('DOMContentLoaded', function () {
    // 获取元素
    const returnTop = document.querySelector('#returnTop')//返回上一级列表
    const badgesList = document.querySelectorAll('ul li')//徽章列表

    // 点击向左字标返回上一级
    returnTop.addEventListener('click',function(){
        history.go(-1);
    })
    badgesList.forEach(function(v){
        v.addEventListener('click',function(){
            location.href = './badgeDetails.html'
        })
    })
    
})